package com.dpiinc.TechPage.model.jbean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/8/2.
 */
public class Strokes implements Serializable {
    private int[] pointID;

    //个数
    private final int NUMBER = 3000;
    private int stroksID;

    //点的个数
    private int point_c = 0;
    //X的坐标
    //private float[] buf1_x = null;
    private List<Float> buf1_x;
    //Y的坐标
    //private float[] buf1_y = null;
    private List<Float> buf1_y;
    //Z的坐标
    //private int[] buf1_z = null;
    private List<Integer> buf1_z = new ArrayList<>();

    //开始的坐标
    private int stroke_sp = 0;
    //截止的坐标
    private int stroke_ep = 0;
    private int stroke_color = 0;
    private int stroke_width = 0;
    private String recordId = null;
    //private long[] recordTimestamp = null;
    private List<Long> recordTimestamp = null;

    private boolean isDelete = false;

    private int bookNum;                 //本子
    private int pageNum;                 //页码

    public int getBookNum() {
        return bookNum;
    }

    public void setBookNum(int bookNum) {
        this.bookNum = bookNum;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    private void initArray() {
        point_c = 0;
        pointID = new int[NUMBER];
        //buf1_x = new float[NUMBER];
        //buf1_y = new float[NUMBER];
        //buf1_z = new int[NUMBER];

        buf1_x = new ArrayList<>();
        buf1_y = new ArrayList<>();

        buf1_z = new ArrayList<>();

        recordTimestamp = new ArrayList<>();

        stroke_sp = 0;
        stroke_ep = 0;
        stroke_color = 0;
        stroke_width = 0;
        pageNum = 0;
        bookNum = 0;
    }

    public void clearData() {
        point_c = 0;
        buf1_x = null;
        buf1_y = null;
        buf1_z = null;

        stroke_sp = 0;
        stroke_ep = 0;
        stroke_color = 0;
        stroke_width = 0;
    }

    public Strokes() {
        initArray();
    }

    public int[] getPointID() {
        return pointID;
    }

    public void setPointID(int pointID) {
        this.pointID[point_c] = pointID;
    }

    public int getPoint_c() {
        return point_c;
    }

    public void setPoint_c(int point_c) {
        this.point_c = point_c;
    }

    public List<Float> getBuf1_x() {
        return buf1_x;
    }

    public void setBuf1_x(int point_c, float buf1_x) {
        //this.buf1_x[point_c] = buf1_x;
        this.buf1_x.add(point_c, buf1_x);
    }

    public List<Float> getBuf1_y() {
        return buf1_y;
    }

    public void setBuf1_y(int point_c, float buf1_y) {
        //this.buf1_y[point_c] = buf1_y;
        this.buf1_y.add(point_c, buf1_y);
    }

    public List<Integer> getBuf1_z() {
        return buf1_z;
    }

    public void setBuf1_z(int point_c, int buf1_z) {
        //this.buf1_z[point_c] = buf1_z;
        this.buf1_z.add(point_c, buf1_z);
    }

    public int getStroke_sp() {
        return stroke_sp;
    }

    public void setStroke_sp(int stroke_sp) {
        this.stroke_sp = stroke_sp;
    }

    public int getStroke_ep() {
        return stroke_ep;
    }

    public void setStroke_ep(int stroke_ep) {
        this.stroke_ep = stroke_ep;
    }

    public int getStroke_color() {
        return stroke_color;
    }

    public void setStroke_color(int stroke_color) {
        this.stroke_color = stroke_color;
    }

    public int getStroke_width() {
        return stroke_width;
    }

    public void setStroke_width(int stroke_width) {
        this.stroke_width = stroke_width;
    }

    public String getRecordId() {
        return recordId;
    }

    public void setRecordId(String recordId) {
        this.recordId = recordId;
    }

    public List<Long> getRecordTimestamp() {
        return recordTimestamp;
    }

    public void setRecordTimestamp(int point_c, long recordTimestamp) {
        //this.recordTimestamp[point_c] = recordTimestamp;
        this.recordTimestamp.add(point_c, recordTimestamp);
    }

    public boolean isDelete() {
        return isDelete;
    }

    public void setDelete(boolean delete) {
        isDelete = delete;
    }

    public int getStroksID() {
        return stroksID;
    }

    public void setStroksID(int stroksID) {
        this.stroksID = stroksID;
    }
}
